package com.ease.access.systemmonitor.service.impl;

import com.ease.access.systemmonitor.service.AlarmInfoAccessService;
import com.ease.common.vo.MapParameter;
import com.ease.common.vo.Pagination;
import com.ease.model.systemmonitor.AlarmInfo;
import com.ease.platform.access.service.impl.AbstractParameterizedBeanIbatisAccessServiceImpl;

public class AlarmInfoAccessServiceImpl extends AbstractParameterizedBeanIbatisAccessServiceImpl<AlarmInfo> implements AlarmInfoAccessService {
	private static class Statement {
		static String findAlarmInfo = "findAlarmInfo";
		static String updateAlarmInfo = "updateAlarmInfo";
	}

	public Pagination<AlarmInfo> findAlarmInfo(Pagination<AlarmInfo> pagination) {
		MapParameter parameter = new MapParameter();
		Pagination<AlarmInfo> _pagination = this.findPagination(parameter, null, pagination);
		return _pagination;
	}

	public int deleteAlarmInfo(AlarmInfo model) {
		return this.getIbatisDataAccessObject().update(this.getNamespace(), Statement.updateAlarmInfo, model);
	}

}
